package com.example.base_application_sdk;

import android.app.Application;
import android.content.Context;

import androidx.multidex.MultiDex;

//全局共享的Application
public class BaseApplication extends Application {

    private static BaseApplication instance;

    public static BaseApplication getInstance(){
        return instance;
    }


    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }


    @Override
    public void onCreate() {
        super.onCreate();
        instance=this;
    }
}
